package entry;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;

//标注该类为SpringBoot的主配置类
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})// 排除前端门户的数据库自动装配
/*
 * 开启HystrixDashboard监控
 * ！！！：所有的监控平台的图形化界面展示，都依赖actuator
 */
@EnableHystrixDashboard
public class MainStart_HystrixDashboard_10420 {
	public static void main(String[] args) {
		ConfigurableApplicationContext cac = SpringApplication.run(MainStart_HystrixDashboard_10420.class, args);
	}
}
